<?php
require_once('../../inc/lib/base/cls_img.php');
$getimg=new image_class;
$filename=$_REQUEST['filename'];//获取上传文本框名称

if($_REQUEST['hassmall']!==''){
	echo json_encode($getimg->upfile($filename,'img/b',$_REQUEST['hassmall'],'img/s'));
}else{
	 echo $getimg->upfile($filename);
}


?>